// test.ts

import { MockMethod } from 'vite-plugin-mock'
//https://bcc.xiwang.com/api/trade/PC/Address/Delete/index
export default [
  {
    url: '/api/trade/PC/Address/Delete/index',
    method: 'post',
    response: ({ query }) => {
      return { result: { status: 1, data: '\u64cd\u4f5c\u6210\u529f' } }
    },
  },
  {
    url: '/api/ocenter/Touch/OrderCancel/index',
    method: 'post',
    response: ({ query }) => {
      return { status: 1, data: '订单取消成功' }
    },
  },
  {
    url: '/api/trade/PC/Order/Confirm/index',
    method: 'post',
    response: ({ query }) => {
      return {
        result: {
          status: 1,
          data: {
            stuAdd: {
              id: '26849452',
              uid: 2100060603,
              tal_id: 'TaloC1FAp9pa7kcr21jNFxqOsA',
              name: '\u5f20\u6ce2',
              phone_code: '86',
              phone: '156****0958',
              zipcode: '',
              province_id: '1',
              city_id: '1',
              county_id: '1',
              province_name: '\u5317\u4eac\u5e02',
              city_name: '\u5e02\u8f96\u533a',
              county_name: '\u4e1c\u57ce\u533a',
              detail: '\u5c0f\u6c99\u6cb3\u67511',
              note: '',
              is_default: 0,
              mobile: '',
              modify_time: '2023-02-09 15:40:38',
              create_time: '2023-02-08 16:32:53',
              orderHint: '',
            },
            balance: 0,
            presaleInfo: [],
            grouponId: '0',
            grouponOrderNum: '0',
            productType: 100,
            productInfo: [
              {
                product_type: 100,
                resale: '528',
                status: '1',
                realPrice: '528',
                course_id: '1390566',
                productId: '1390566',
                course_name:
                  '\u521d\u4e00\u6570\u5b66\u57f9\u8bad\u73ed\uff08\u6625\u4e0a\u00b7\u4e0a\u6d77\u6caa\u6559\u7248\u00b7A+\uff09',
                subject_id: '2',
                difficulty_id: '4',
                halt_sale_time: '2023-03-23 23:59:59',
                sale_time: '2023-01-27 00:00:00',
                subject_name: '\u6570\u5b66',
                total_sections: '12',
                price: '528',
                schooltime_name:
                  '2\u670817\u65e5-3\u670824\u65e5\u00b7\u6bcf\u5468\u4e9419:00-20:50\u4e0a\u8bfe\u00b724\u8bfe\u65f6',
                is_live: 1,
                stu_classify_ids: 0,
                category: '8',
                grade_ids: '8',
                term_ids: '54',
                sale_status: 1,
                type_1_id: '649',
                version_id: '91',
                outline_ids: '1073350,1073351',
                difficulty_id_new: '205',
                sale_id: '1526574',
                main_teacher: [
                  {
                    title: '\u6388\u8bfe',
                    teacher_name: '\u6234\u955c\u8f69',
                    avatar:
                      'https://static4.saasz.vdyoo.com/teacher/trm/1645061354879_1638934298344.png',
                    teacher_type: 1,
                  },
                ],
                counselor_teacher: [
                  {
                    title: '\u73ed\u4e3b\u4efb',
                    teacher_name: '\u8001\u5e08',
                    avatar: 'https://static1.saasz.vdyoo.com/teacher/2021/05/31/1622450894icon.png',
                    teacher_type: '4',
                  },
                ],
                buygift_detail: {
                  goodsData: {
                    giftProductNum: 1,
                    allProducPrice: '6',
                    giftproductDesc:
                      '\u82e5\u7533\u8bf7\u9000\u8d39\u65f6\u8bb2\u4e49\u5df2\u7b7e\u6536\uff0c\u4f1a\u6263\u9664\u7b7e\u6536\u7684\u8bb2\u4e49\u8d39\u7528',
                    giftsDetails: [
                      {
                        giftProductId: 500677,
                        giftProductTypeName: '\u5176\u4ed6',
                        giftProductType: 101,
                        giftProductName:
                          '\u521d\u4e00\u6570\u5b66\u57f9\u8bad\u73ed\u5b66\u4e60\u7528\u4e66\uff08\u6625\u4e0a\u00b7\u4e0a\u6d77\u6caa\u6559\u7248\u00b7A+\uff092',
                        giftProductPrice: '6',
                        giftProductNum: 1,
                      },
                    ],
                  },
                  othersData: {
                    giftproductDesc:
                      '\u652f\u4ed8\u6210\u529f\u540e\uff0c\u5176\u4ed6\u8d60\u54c1\u53ca\u65f6\u53d1\u653e\u5230\u60a8\u7684\u8d26\u6237\u4e2d',
                    giftsDetails: [
                      {
                        giftType: 100,
                        giftTypeName: '\u8bfe\u7a0b',
                        giftProductNames: [
                          '\u521d\u4e00\u6570\u5b66\u8d60\u8bfe\uff08\u6536\u5fc3\u4e13\u9898\u8bfe\uff09',
                        ],
                      },
                    ],
                  },
                },
                buygift_info: [
                  { giftProductName: '\u8bb2\u4e49\u798f\u5229', giftProductNum: 1 },
                  { giftProductName: '\u5176\u4ed6\u8d60\u54c1', giftProductNum: 1 },
                ],
                courseTimeConflictInfo: {
                  hasConflict: 0,
                  text: '\u5f53\u524d\u8bfe\u7a0b\u76f4\u64ad\u65f6\u95f4\u6709\u51b2\u7a81',
                },
                promotionAmt: 0,
                promotionType: '',
                sourceId: '',
              },
              {
                product_type: 100,
                resale: '528',
                status: '1',
                realPrice: '528',
                course_id: '1390566',
                productId: '1390566',
                course_name:
                  '\u521d\u4e00\u6570\u5b66\u57f9\u8bad\u73ed\uff08\u6625\u4e0a\u00b7\u4e0a\u6d77\u6caa\u6559\u7248\u00b7A+\uff09',
                subject_id: '2',
                difficulty_id: '4',
                halt_sale_time: '2023-03-23 23:59:59',
                sale_time: '2023-01-27 00:00:00',
                subject_name: '\u6570\u5b66',
                total_sections: '12',
                price: '528',
                schooltime_name:
                  '2\u670817\u65e5-3\u670824\u65e5\u00b7\u6bcf\u5468\u4e9419:00-20:50\u4e0a\u8bfe\u00b724\u8bfe\u65f6',
                is_live: 1,
                stu_classify_ids: 0,
                category: '8',
                grade_ids: '8',
                term_ids: '54',
                sale_status: 1,
                type_1_id: '649',
                version_id: '91',
                outline_ids: '1073350,1073351',
                difficulty_id_new: '205',
                sale_id: '1526574',
                main_teacher: [
                  {
                    title: '\u6388\u8bfe',
                    teacher_name: '\u6234\u955c\u8f69',
                    avatar:
                      'https://static4.saasz.vdyoo.com/teacher/trm/1645061354879_1638934298344.png',
                    teacher_type: 1,
                  },
                ],
                counselor_teacher: [
                  {
                    title: '\u73ed\u4e3b\u4efb',
                    teacher_name: '\u8001\u5e08',
                    avatar: 'https://static1.saasz.vdyoo.com/teacher/2021/05/31/1622450894icon.png',
                    teacher_type: '4',
                  },
                ],
                buygift_detail: {
                  goodsData: {
                    giftProductNum: 1,
                    allProducPrice: '6',
                    giftproductDesc:
                      '\u82e5\u7533\u8bf7\u9000\u8d39\u65f6\u8bb2\u4e49\u5df2\u7b7e\u6536\uff0c\u4f1a\u6263\u9664\u7b7e\u6536\u7684\u8bb2\u4e49\u8d39\u7528',
                    giftsDetails: [
                      {
                        giftProductId: 500677,
                        giftProductTypeName: '\u5176\u4ed6',
                        giftProductType: 101,
                        giftProductName:
                          '\u521d\u4e00\u6570\u5b66\u57f9\u8bad\u73ed\u5b66\u4e60\u7528\u4e66\uff08\u6625\u4e0a\u00b7\u4e0a\u6d77\u6caa\u6559\u7248\u00b7A+\uff092',
                        giftProductPrice: '6',
                        giftProductNum: 1,
                      },
                    ],
                  },
                  othersData: {
                    giftproductDesc:
                      '\u652f\u4ed8\u6210\u529f\u540e\uff0c\u5176\u4ed6\u8d60\u54c1\u53ca\u65f6\u53d1\u653e\u5230\u60a8\u7684\u8d26\u6237\u4e2d',
                    giftsDetails: [
                      {
                        giftType: 100,
                        giftTypeName: '\u8bfe\u7a0b',
                        giftProductNames: [
                          '\u521d\u4e00\u6570\u5b66\u8d60\u8bfe\uff08\u6536\u5fc3\u4e13\u9898\u8bfe\uff09',
                        ],
                      },
                    ],
                  },
                },
                buygift_info: [
                  { giftProductName: '\u8bb2\u4e49\u798f\u5229', giftProductNum: 1 },
                  { giftProductName: '\u5176\u4ed6\u8d60\u54c1', giftProductNum: 1 },
                ],
                courseTimeConflictInfo: {
                  hasConflict: 1,
                  text: '当前课程直播时间有冲突',
                },
                promotionAmt: 0,
                promotionType: '',
                sourceId: '',
              },
              {
                product_type: 100,
                resale: '528',
                status: '1',
                realPrice: '528',
                course_id: '1390566',
                productId: '1390566',
                course_name:
                  '\u521d\u4e00\u6570\u5b66\u57f9\u8bad\u73ed\uff08\u6625\u4e0a\u00b7\u4e0a\u6d77\u6caa\u6559\u7248\u00b7A+\uff09',
                subject_id: '2',
                difficulty_id: '4',
                halt_sale_time: '2023-03-23 23:59:59',
                sale_time: '2023-01-27 00:00:00',
                subject_name: '\u6570\u5b66',
                total_sections: '12',
                price: '528',
                schooltime_name:
                  '2\u670817\u65e5-3\u670824\u65e5\u00b7\u6bcf\u5468\u4e9419:00-20:50\u4e0a\u8bfe\u00b724\u8bfe\u65f6',
                is_live: 1,
                stu_classify_ids: 0,
                category: '8',
                grade_ids: '8',
                term_ids: '54',
                sale_status: 1,
                type_1_id: '649',
                version_id: '91',
                outline_ids: '1073350,1073351',
                difficulty_id_new: '205',
                sale_id: '1526574',
                main_teacher: [
                  {
                    title: '\u6388\u8bfe',
                    teacher_name: '\u6234\u955c\u8f69',
                    avatar:
                      'https://static4.saasz.vdyoo.com/teacher/trm/1645061354879_1638934298344.png',
                    teacher_type: 1,
                  },
                ],
                counselor_teacher: [
                  {
                    title: '\u73ed\u4e3b\u4efb',
                    teacher_name: '\u8001\u5e08',
                    avatar: 'https://static1.saasz.vdyoo.com/teacher/2021/05/31/1622450894icon.png',
                    teacher_type: '4',
                  },
                ],
                buygift_detail: {
                  goodsData: {
                    giftProductNum: 1,
                    allProducPrice: '6',
                    giftproductDesc:
                      '\u82e5\u7533\u8bf7\u9000\u8d39\u65f6\u8bb2\u4e49\u5df2\u7b7e\u6536\uff0c\u4f1a\u6263\u9664\u7b7e\u6536\u7684\u8bb2\u4e49\u8d39\u7528',
                    giftsDetails: [
                      {
                        giftProductId: 500677,
                        giftProductTypeName: '\u5176\u4ed6',
                        giftProductType: 101,
                        giftProductName:
                          '\u521d\u4e00\u6570\u5b66\u57f9\u8bad\u73ed\u5b66\u4e60\u7528\u4e66\uff08\u6625\u4e0a\u00b7\u4e0a\u6d77\u6caa\u6559\u7248\u00b7A+\uff092',
                        giftProductPrice: '6',
                        giftProductNum: 1,
                      },
                    ],
                  },
                  othersData: {
                    giftproductDesc:
                      '\u652f\u4ed8\u6210\u529f\u540e\uff0c\u5176\u4ed6\u8d60\u54c1\u53ca\u65f6\u53d1\u653e\u5230\u60a8\u7684\u8d26\u6237\u4e2d',
                    giftsDetails: [
                      {
                        giftType: 100,
                        giftTypeName: '\u8bfe\u7a0b',
                        giftProductNames: [
                          '\u521d\u4e00\u6570\u5b66\u8d60\u8bfe\uff08\u6536\u5fc3\u4e13\u9898\u8bfe\uff09',
                        ],
                      },
                    ],
                  },
                },
                buygift_info: [
                  { giftProductName: '\u8bb2\u4e49\u798f\u5229', giftProductNum: 1 },
                  { giftProductName: '\u5176\u4ed6\u8d60\u54c1', giftProductNum: 1 },
                ],
                courseTimeConflictInfo: {
                  hasConflict: 0,
                  text: '\u5f53\u524d\u8bfe\u7a0b\u76f4\u64ad\u65f6\u95f4\u6709\u51b2\u7a81',
                },
                promotionAmt: 0,
                promotionType: '',
                sourceId: '',
              },
            ],
            isSend: 1,
            startedDescription: '',
            agreementDescription:
              '\u6ce8\uff1a\u82e5\u5546\u54c1\u7533\u8bf7\u9000\u8d39\u65f6\u8bb2\u4e49\u5df2\u7b7e\u6536\uff0c\u9700\u6839\u636e\u7b7e\u6536\u7684\u8bb2\u4e49\u6309\u5206\u7c7b\u6263\u9664\u8d39\u7528\u3002',
            agreementUrl: 'https://trade.bcc.xiwang.com/App/AppDescription/payAppDeduction',
            immediatelyPayDesc:
              '\u672a\u652f\u4ed8\u8ba2\u5355\u4f1a\u572815\u5206\u949f\u540e\u53d6\u6d88',
            payPrice: '\u00a5528',
            realPayPrice: '\u00a5528',
            realPayPriceNum: 528,
            realPayMoney: 528,
            totalProduct: 1,
            priceShowInfo: [{ title: '\u5546\u54c1\u91d1\u989d', type: 1, price: '528' }],
            productPromType: [],
            orderType: 1,
            oldOrderNum: '',
            orderUserAccount: '156****0958',
            constractInfo: {
              isShow: 1,
              isDefault: 1,
              constractDesc: '\u6211\u5df2\u9605\u8bfb\u5e76\u540c\u610f',
              constractBtn:
                '\u300a\u4e2d\u5c0f\u5b66\u751f\u6821\u5916\u57f9\u8bad\u670d\u52a1\u5408\u540c\u300b',
              constractLink: 'https://h5.xiwang.com/61dfc753f85c6e7f0070721b.html',
            },
            prepaidCardInfo: {
              repaidCardStatus: 1,
              repaidCardDesc: '1张可用',
              repaidCardSwitch: 1,
            },
            promotionDetail: {
              orderPromotion: {
                price: 0,
                title: '\u8ba2\u5355\u7ef4\u5ea6\u4f18\u60e0',
                reduced: 0,
                detail: [],
              },
              promotionRule: 'https://t.bcc.xiwang.com/J3c5ZUgQ',
              couponProm: {
                rule_url: 'https://t.bcc.xiwang.com/Rz5xdYSy',
                total_discount: 0,
                reduced_money: 0,
                checked_order_coupon_num: 0,
                order_coupon_reduced_money: '0',
                checked_cash_coupon_num: 0,
                cash_coupon_reduced_money: '0',
                checked_product_coupon_num: 0,
                product_coupon_reduced_money: 0,
                coupon_detail: [],
              },
              allPromoPrice: 0,
            },
            couponInfo: {
              isChecked: 1,
              couponTxt: '已选择最优推荐',
              couponPrice: 9,
              choose_coupon: [
                {
                  user_coupon_id: '2M3Q443CBY4SE4MBXH88',
                },
              ],
              couponPriceStr: '-¥9',
            },
            couponProdInfo: [{ id: '1390566', price: '528' }],
            ucProdInfo:
              'W3sicHJvZHVjdF9pZCI6IjEzOTA1NjYiLCJwcmljZSI6IjUyOCIsInByb2R1Y3RfbnVtIjoxLCJicmFuZCI6IjEwMCJ9XQ==',
            source: 7,
          },
        },
      }
    },
  },
] as MockMethod[]
